
#ifndef _MEMBER_BListItem_H_
#define _MEMBER_BListItem_H_

#include <BIcon>
#include <BScrollBar>
#include <BListItem>
#include <BListWidget>
#include "IAlignment.h"

#define item_member(item)			((member_BListItem*)((BListItem*)item)->_ptr)

namespace BWE
{
	class member_BListItem : public IAlignment
	{
	public:
		member_BListItem(BListItem* item);
		~member_BListItem();

		void dirtyCell();
		void freshSize(const BFont* font);
		void adjustRect(int x, int y, int width, int height);

		BListItem*			boss;
		BListWidget*		list;
		BString				text;
		BColor				color;
		Graph				graph;
		BImageHolder		image;
		BIconHolder			icon;
		BWidgetHolder		widget;
		BSize				iconSize;
		bool				selected;
		bool				visible;

		bool				dirty;
		int					index;
		BSize				hintSize;
		BRect				rect;
	};
}

#endif